package main

import (
	"awesomeProject/_time"
	"awesomeProject/args"
	"awesomeProject/db"
	"awesomeProject/lc"
	"awesomeProject/overr"
	"awesomeProject/routinePractice"
	mytest "awesomeProject/test"
	"awesomeProject/uuid"
	"errors"
	"fmt"
	"time"
)


func main() {
	func (display bool){ //多线程实在Println太多了，想看设置display即可
		if display{
			routinePractice.Process(`abc`)
			routinePractice.SellTicket(`abc`)
		}
	}(false)
	lc.T8()
	lc.T6()
	mytest.Test()
	db.Test()
	uuid.Test()
	fmt.Println(_time.Test())
	overr.Test()

	args.ArgInterface(1,`asd`,checkGet,true,time.Now())
	//email.Test()

}

func checkGet(x []int, y int) (num int, i error) {

	defer func() {
		r := recover()
		if r != nil {
			i = errors.New(fmt.Sprintf("%v", r))
		}
	}()
	num = x[y]
	return
}
